﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Register.aspx.cs" Inherits="OnlineBusTicket.Register" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">

    protected void imgbtnRegister_Click(object sender, ImageClickEventArgs e)
    {
        if (CheckBox1.Checked == false)
            
        {
            HttpContext.Current.Response.Write("Must Accept"); 
        }
    }
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Sign Up</title>
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            width: 133px;
            text-align: right;
        }
        .style3
        {
            width: 262px;
            height: 31px;
        }
        .style4
        {
            width: 133px;
            height: 21px;
        }
        .style5
        {
            width: 262px;
            height: 21px;
        }
        .style6
        {
            height: 21px;
        }
        .style7
        {
            width: 262px;
            font-family: "Times New Roman", Times, serif;
            font-size: x-large;
            color: #800000;
        }
        .style11
        {
            width: 133px;
            text-align: right;
            height: 35px;
        }
        .style12
        {
            width: 262px;
            height: 35px;
        }
        .style13
        {
            height: 35px;
        }
        .style14
        {
            width: 133px;
            text-align: right;
            height: 33px;
        }
        .style15
        {
            width: 262px;
            height: 33px;
        }
        .style16
        {
            height: 33px;
        }
        .style17
        {
            width: 133px;
            text-align: right;
            height: 37px;
        }
        .style18
        {
            width: 262px;
            height: 37px;
        }
        .style19
        {
            height: 37px;
        }
        .style20
        {
            width: 133px;
            text-align: right;
            height: 31px;
        }
        .style21
        {
            height: 31px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <table class="style1">
            <tr>
                <td class="style2">
                    <asp:Image ID="Image1" runat="server" ImageUrl="~/App_Themes/image/sign up icon.jpg" 
                        Width="111px" />
                </td>
                <td class="style7">
                    Sign up for a new account</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style11">
                    MemberID</td>
                <td class="style12">
                    <asp:TextBox ID="txtMemberId" runat="server"></asp:TextBox>
                </td>
                <td class="style13">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style11">
                    Full Name :</td>
                <td class="style12">
                    <asp:TextBox ID="txtFirstName" runat="server"></asp:TextBox>
                </td>
                <td class="style13">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style11">
                    Gender :</td>
                <td class="style12">
                    <asp:RadioButton ID="rbMale" runat="server" Checked="True" GroupName="Gender" 
                        Text="Male" />
                    <asp:RadioButton ID="RadioButton2" runat="server" GroupName="Gender" 
                        Text="Female" />
                </td>
                <td class="style13">
                    </td>
            </tr>
            <tr>
                <td class="style14">
                    Age :</td>
                <td class="style15">
                    <asp:TextBox ID="txtAge" runat="server"></asp:TextBox>
                </td>
                <td class="style16">
                    </td>
            </tr>
            <tr>
                <td class="style14">
                    UserName :</td>
                <td class="style15">
                    <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox>
                </td>
                <td class="style16">
                    </td>
            </tr>
            <tr>
                <td class="style14">
                    Password :</td>
                <td class="style15">
                    <asp:TextBox ID="txtPassword" runat="server" TextMode="Password"></asp:TextBox>
                </td>
                <td class="style16">
                    </td>
            </tr>
            <tr>
                <td class="style17">
                    ConfirmPassword :</td>
                <td class="style18">
                    <asp:TextBox ID="txtConfirmPass" runat="server" TextMode="Password"></asp:TextBox>
                    <br />
                    <asp:CompareValidator ID="CompareValidator1" runat="server" 
                        ControlToValidate="txtConfirmPass" 
                        ErrorMessage="Uncorrect ! please enter again " 
                        ControlToCompare="txtPassword"></asp:CompareValidator>
                </td>
                <td class="style19">
                    </td>
            </tr>
            <tr>
                <td class="style14">
                    Address :</td>
                <td class="style15">
                    <asp:TextBox ID="txtAddress" runat="server"></asp:TextBox>
                </td>
                <td class="style16">
                    </td>
            </tr>
            <tr>
                <td class="style14">
                    Phone :</td>
                <td class="style15">
                    <asp:TextBox ID="txtPhone" runat="server"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                        ControlToValidate="txtPhone" ErrorMessage="Please enter the phone number again" 
                        ValidationExpression="(\(\d{3}\)|\d{3}-)?\d{10}"></asp:RegularExpressionValidator>
                </td>
                <td class="style16">
                    </td>
            </tr>
            <tr>
                <td class="style14">
                    Email :</td>
                <td class="style15">
                    <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                        ControlToValidate="txtEmail" ErrorMessage="Please enter right" 
                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                </td>
                <td class="style16">
                    </td>
            </tr>
            <tr>
                <td class="style20">
                    </td>
                <td class="style3">
                    <asp:CheckBox ID="CheckBox1" runat="server" 
                        Text="I agree with the following item" />
                &nbsp;
                    <asp:Label ID="Label1" runat="server" Text="[Label]"></asp:Label>
                </td>
                <td class="style21">
                    </td>
            </tr>
            <tr>
                <td class="style4">
                </td>
                <td class="style5">
                    <asp:ImageButton ID="imgbtnRegister" runat="server" Height="54px" 
                        ImageUrl="~/App_Themes/image/untitled.bmp" 
                        Width="143px" onclick="imgbtnRegister_Click"  />
                </td>
                <td class="style6">
                    &nbsp;</td>
            </tr>
        </table>
&nbsp;</div>
    </form>
</body>
</html>
